package com.zheng.current;

import com.zheng.current.dto.Task;
import com.zheng.current.dto.WrapFlightQuery;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author: ztl
 * @date: 2025/06/22 22:14
 * @desc:
 */
@Component("flightChunQiuTaskConformability")
public class FlightChunQiuTaskConformability implements IFlightMultiTaskConformability{
    @Override
    public Task category() {
        System.out.println("category start ..."+Task.CQ);
        return Task.CQ;
    }

    @Override
    public Map<String, Object> execute(WrapFlightQuery flightQuery) {
        System.out.println("execute start ..."+Task.CQ);
        try {
            Thread.sleep(3000);
        }catch (Exception e){
            System.out.println("execute error ..."+Task.CQ);
        }
        System.out.println("execute end ..."+Task.CQ);
        return null;
    }
}
